import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';

import { AdministrationStaffAttendanceComponent }     from './administration-staff-attendance.component';

import { DefaultInterfaceComponent } from './default-interface/default-interface.component';
import { SuccessfulInterfaceComponent } from './successful-interface/successful-interface.component';
import { ChangeHolidayComponent } from './change-holiday/change-holiday.component';
import { StaffLeaveRecordComponent } from './staff-leave-record/staff-leave-record.component';

const AdministrationStaffAttendanceRoutes: Routes = [
    
    {    
        path: 'administration-staff-attendance',
        component: AdministrationStaffAttendanceComponent,
        
        children: [
          {
            path: 'default-interface',
            component: DefaultInterfaceComponent
          },
          {
            path: 'successful-interface',
            component: SuccessfulInterfaceComponent
          },
          {
            path: 'change-holiday',
            component: ChangeHolidayComponent
          },
          {
            path: 'staff-leave-record',
            component: StaffLeaveRecordComponent
          }
          
          /*
          {
            path: 'crisis-list',
            component: CrisisListComponent,
            
            children: [
              
              {
                path: ':id',
                component: LeaveDetailComponent
              }
              
              
            ]
            
          }
          */
        ]
        
    }
    

];

@NgModule({
    imports: [
        RouterModule.forChild(AdministrationStaffAttendanceRoutes)
    ],
    exports: [
        RouterModule
    ]
})
export class AdministrationStaffAttendanceRoutingModule { }